imcontext: Fix cursor positions
authorMatthias Clasen <mclasen@redhat.com>
Wed, 21 Apr 2021 10:27:26 +0000 (06:27 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 21 Apr 2021 10:28:52 +0000 (06:28 -0400)
commit15483ac9df346b4ff59bb5286ba2598b729b88f1
tree47b5bbbccd45db1046f1fd3c368ee493adc87163
parent435ed3158cff7b9967aae2a33f52aab0d23720f6
imcontext: Fix cursor positions

gtk_im_context_get_preedit_string is documented to
return the cursor position as a character offset,
not a byte count. So return that.

Fixed: #3885
gtk/gtkimcontextsimple.c